package com.ruoyi.gp.enums;

public enum QuestionType {
    MULTIPLE_CHOICE("单选"), SINGLE_CHOICE("多选"),FILL_IN_THE_BLANK("填空");
    private String typeName;


    QuestionType(String typeName){
        this.typeName = typeName;
    }
     public String getTypeName(){
         return this.typeName;
     }

     public static String getTypeName(int type){
        switch (type){
            case 0:
                return MULTIPLE_CHOICE.getTypeName();
            case 1:
                return SINGLE_CHOICE.getTypeName();
            case 2:
                return FILL_IN_THE_BLANK.getTypeName();
            default:
                return null;
        }
     }

}
